package com.shuma.shopmanage.usermoudle.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shuma.shopmanage.model.user.model.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


@Mapper
public interface RoleMapper extends BaseMapper<Role> {

    @Select("select name from role where id=#{roleId}")
    Role getRoleById(@Param("roleId") Integer roleId);
}
